PQ = [];

nr_targets = 5;
  
[s1TargetOrder] = ST_RandomTargetOrder(nr_targets, 1, 0); 
s1TargetOrder = s1TargetOrder';

[s2TargetOrder] = ST_RandomTargetOrder(nr_targets, 1, 0); 
s2TargetOrder = s2TargetOrder';
%s2TargetOrder = s1TargetOrder;

%s1TargetOrder = [5 4 2 1 3]';
%s2TargetOrder = [5 2 1 4 3]';

param.schedule.max_priority = 7;
param.schedule.max_scans = 7;

param.schedule.algorithm = 'IA';
[PQ1, status1, scheduledTargets1] = BsMf_Schedule(PQ, s1TargetOrder, s2TargetOrder, param);

param.schedule.algorithm = 'HR';
[PQ2, status2, scheduledTargets2] = BsMf_Schedule(PQ, s1TargetOrder, s2TargetOrder, param);
  
[s3TargetOrder] = ST_RandomTargetOrder(nr_targets, 3, 0.5); 
s3TargetOrder = s3TargetOrder';

[s4TargetOrder] = ST_RandomTargetOrder(nr_targets, 3, 0.5); 
s4TargetOrder = s4TargetOrder';

%s3TargetOrder = [3,2,1;5,4,NaN;NaN,NaN,NaN;NaN,NaN,NaN;NaN,NaN,NaN;];
%s4TargetOrder = [1,3,NaN;5,2,NaN;4,NaN,NaN;NaN,NaN,NaN;NaN,NaN,NaN;];

param.schedule.algorithm = 'IA';
[PQ3, status3, scheduledTargets3] = BsMf_Schedule(PQ, s3TargetOrder, s4TargetOrder, param);

param.schedule.algorithm = 'HR';
[PQ4, status4, scheduledTargets4] = BsMf_Schedule(PQ, s3TargetOrder, s4TargetOrder, param);